package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工实体类
 */
public class EmployeeBean {
    /**员工id*/
    private int id;
    /**员工姓名*/
    private String name;
    /**员工生日*/
    private LocalDate birthday;
    /**员工进入公司时间*/
    private LocalDate inDate = LocalDate.now();
    /**员工特长*/
    private String speciality;
    /**员工状态*/
    private String status = "在职";
    /**员工工资*/
    private int money;
    /**员工头像路径*/
    private String face;
    /**员工电话*/
    private String phone;
    /**员工参与的项目列表*/
    private List<ProcessBean> list;

    public EmployeeBean() {
    }

    public EmployeeBean(String name, LocalDate birthday, String speciality, int money, String face, String phone) {
        this.name = name;
        this.birthday = birthday;
        this.speciality = speciality;
        this.money = money;
        this.face = face;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDate getInDate() {
        return inDate;
    }

    public void setInDate(LocalDate inDate) {
        this.inDate = inDate;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    @Override
    public String toString() {
        return "EmployeeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", inDate=" + inDate +
                ", speciality='" + speciality + '\'' +
                ", status='" + status + '\'' +
                ", money=" + money +
                ", face='" + face + '\'' +
                ", phone='" + phone + '\'' +
                ", list=" + list +
                "}\n";
    }
}
